package com.javafly.sms.entity.cms;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;
import com.javafly.sms.entity.IdEntity;
import org.springside.modules.utils.ReflectionUtils;

/**
 * 测试.
 * 
 * 注释见{@link User}.
 * 
 * @author hym
 */
@Entity
@Table(name = "STEST")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Stest extends IdEntity {
	//-- resourceType常量 --//
	
	
	private String name;
	private int sex;
	

	


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	

	/**
	 * 可访问该资源的授权名称字符串, 多个授权用','分隔.
	 */
	@Transient
	public String getTest() {
		return "test";
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
